package com.changgou.feign;

import com.changgou.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Project: com.changgou.feign
 * @Author: ShaoDi Wang
 * @Date: Created in 2019-08-13 09:25
 * @Description:
 * @Version: 1.0
 */
@FeignClient(name = "user")
@RequestMapping("/areas")
public interface AreasFeign {

    /***
     * 多条件搜索区数据
     * @param searchMap
     * @return
     */
    @GetMapping(value = "/search" )
    public Result findList(@RequestParam Map searchMap);
}
